import request from '@/utils/request'

// 查询APP内广告列表
export function listAppAdv(query) {
  return request({
    url: '/business/appAdv/list',
    method: 'get',
    params: query
  })
}

// 查询APP内广告详细
export function getAppAdv(id) {
  return request({
    url: '/business/appAdv/' + id,
    method: 'get'
  })
}

// 新增APP内广告
export function addAppAdv(data) {
  return request({
    url: '/business/appAdv',
    method: 'post',
    data: data
  })
}

// 修改APP内广告
export function updateAppAdv(data) {
  return request({
    url: '/business/appAdv',
    method: 'put',
    data: data
  })
}

// 删除APP内广告
export function delAppAdv(id) {
  return request({
    url: '/business/appAdv/' + id,
    method: 'delete'
  })
}

// 导出APP内广告
export function exportAppAdv(query) {
  return request({
    url: '/business/appAdv/export',
    method: 'get',
    params: query
  })
}